Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next

I've used SWFUpload. The trick is avoiding "File Upload Not Allowed Exception"

I used SWFUpload.org's code.

It was a bit of JavaScript, and it's impossible if you don't know that Domino by default doesn't allow submitted fields that aren't on the receiving form, and since a File Upload Control actually has a field name behind the scenes, like "%%File.uglyuglyuglyugly12345", most people miss it completely and end up getting errors in their log that look like

HTTP Web Server: File Upload Not Allowed Exception

The field checking is a good thing. You can disable it with an Notes.ini setting of DominoDisableFileUploadChecks=1 but that has security implications across your server. Instead put a 'real' file upload control in with an ID of FileUploadControl, then passed that ugly "field name" to SWFUpload with
swfuploadsettings.file_post_name = document.getElementById('FileUploadControl').name

The nice thing about sending a native file upload to the browser is that you can control it within a div tag or some other element and then replace the contents, creating a web page that degrades gracefully... i.e. if your file upload control fails to initialize for whatever reason, the user still has a file upload control.


Feedback response number WEBB7VQTCU created by ~Holly Brefreemannivu on 09/09/2009

Custom File Upload Controls (~Ethan Relutexn... 12.Jun.09)
. . I've used SWFUpload. The trick is ... (~Holly Brefreem... 9.Sep.09)
. . . . Got it! (~Lisa Elreterob... 20.Oct.09)
. . . . . . Results? (~Patti Cisfanav... 19.Nov.09)
. . . . . . . . re results (~Ethan Relutexn... 11.Mar.10)
. . . . Not quite there yet... (~Ethan Relutexn... 28.Sep.09)
. . . . . . Got a little further (~Ethan Relutexn... 12.Oct.09)
. . . . . . . . Any Luck? (~Hank Preponeve... 25.Jan.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS